package com.sk.gzwater.service;
import java.util.Calendar;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class GetRemoteDateBroadcast extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if(intent.getAction().equals(Settings.ACTION.GET_PLANT_DATA)){
			if(intent.getExtras().getBoolean("first_run")==true){
				Intent getPlantService = new Intent(context, GetPlantInfo.class);
				context.startService(getPlantService);
				Log.v("startservice", Calendar.getInstance().getTime().toString());
			}else {
				
			}			
		}
	}

}
